all: 00-prod-cons 01-prod-cons 02-prod-cons 03-prod-cons 04-prod-cons \
	05-prod-cons 06-prod-cons 07-prod-cons 08-prod-cons

00-prod-cons: 00-prod-cons.c
	gcc 00-prod-cons.c -lpthread -o 00-prod-cons

01-prod-cons: 01-prod-cons.c
	gcc 01-prod-cons.c -lpthread -o 01-prod-cons

02-prod-cons: 02-prod-cons.c
	gcc 02-prod-cons.c -lpthread -o 02-prod-cons

03-prod-cons: 03-prod-cons.c
	gcc 03-prod-cons.c -lpthread -o 03-prod-cons

04-prod-cons: 04-prod-cons.c
	gcc 04-prod-cons.c -lpthread -o 04-prod-cons

05-prod-cons: 05-prod-cons.c
	gcc 05-prod-cons.c -lpthread -o 05-prod-cons

06-prod-cons: 06-prod-cons.c
	gcc 06-prod-cons.c -lpthread -o 06-prod-cons

07-prod-cons: 07-prod-cons.c queue_a.c queue_a.h
	gcc 07-prod-cons.c queue_a.c -lpthread -o 07-prod-cons

08-prod-cons: 08-prod-cons.c queue_a.c queue_a.h
	gcc 08-prod-cons.c queue_a.c -lpthread -o 08-prod-cons

clean:
	rm -f 00-prod-cons 01-prod-cons 02-prod-cons 03-prod-cons \
	04-prod-cons 05-prod-cons 06-prod-cons 07-prod-cons 08-prod-cons

rmall:
	rmall '0?-prod-cons'
